package com.project.service;

import com.project.bean.TicketBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(url = "http://127.0.0.1:8882/", name = "cinema")
//@RequestMapping("ticket")
public interface CinemaService {
    @GetMapping("/ticket/getTicketByStatus")
    public List<TicketBean> getTicketByStatus(@RequestParam("status")String status);
}
